package client.behavioral.state;

import org.junit.Test;
import uml.behavioral.state.Account;

/**
 * 状态--客户端<br>
 * on 2023/1/6 0:51
 */
public class Client {
    @Test
    public void t() {
        Account account = new Account("张三", 0);
        account.withdraw(2000);
        account.deposit(1000);
        account.deposit(3000);
        account.withdraw(4000);
        account.withdraw(1000);
        account.deposit(2001);
        account.withdraw(2001);
        account.withdraw(1);
        account.computeInterest();
    }
}
